package com.wanger.swa.config.swTools;

import cn.hutool.core.collection.CollUtil;
import com.wanger.swa.dto.template.resp.tips.systemTool.SysToolInfo;
import com.wanger.swc.model.tips.TipInfo;
import com.wanger.swc.util.sw.SWUtil;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: wanger
 * @Date: 2024/12/29 18:21
 * @Description:
 */
@Data
@Component
public class SWUtilResp implements SysToolInfo {

    @Override
    public Class<?> toolType() {
        return SWUtil.class;
    }

    @Override
    public TipInfo getTitle() {
        return new TipInfo("SWUtil", "时间工具，参考系统工具=>SWUtil");
    }

    @Override
    public List<TipInfo> getTips() {
        return CollUtil.toList(
                new TipInfo("SWUtil.ultbh(str)", "下划线转大驼峰"),
                new TipInfo("SWUtil.acronym(str)", "首字母缩写"),
                new TipInfo("other", "其他功能参考系统工具=>SWUtil")
        );
    }
}
